

/**
 * 将邮箱和身份证号传到后台进行验证
 */
function findPasswdExcute(){
	
	var findPasswdDiv = getElementById("findPasswdDiv");
	
	var idNumber = getElementById("idNumber").value;
	var email = getElementById("email").value;
	var checkEmailResult;
	var checkIdResult;
	try {
		checkEmailResult = getElementById("checkEmailResult").value;
		checkIdResult = getElementById("checkIdResult").value;
	} catch (e) {
		alert("您的输入信息不完整");
		return;
	}

	
	if(checkEmailResult=="false" || checkIdResult=="false"){
		alert("您的输入信息不符合要求");
		return;
	}
	
	
	//发起异步请求
	$.ajax({
		url:base_domain+'/base/findPasswd.html',
		data:'idNumber='+idNumber+"&email="+email,
		type:'post',
		dataType : 'json',
		contentType : "application/x-www-form-urlencoded;charset=utf-8",
		success:function(result){
			findPasswdDiv.innerHTML = "<a href='"+result+"'>找回密码</a>";
		},
		
		error:function(){
			alert("连接服务器出错");
		}
	});
}